package duyd.jpa.training.main;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

public class ContextAware implements ApplicationContextAware {
	ApplicationContext context = null;

	public void setApplicationContext(ApplicationContext context)
			throws BeansException {
		this.context = context;
	}
	
	public void testContext() {
		System.out.println("*****\n" + context + "\n*****");
	}
}
